package com.bonc.modules.dial.controller;

import com.bonc.common.utils.Result;
import com.bonc.modules.dial.service.DialTestItemCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dialTestItemCode")
public class DialTestItemCodeController {

    @Autowired
    private DialTestItemCodeService dialTestItemCodeService;

    @GetMapping("/getItemCode")
    @ResponseBody
    public Result getItemCode(String prodCode) {
        return Result.ok().put("data", dialTestItemCodeService.queryDialTestItemCode(prodCode));
    }
}
